package com.css.fxfzysx.modules.ysxManagement.controller;

import com.css.fxfzysx.base.response.RestResponse;
import com.css.fxfzysx.modules.ysxManagement.service.ZqtCiService;
import com.css.fxfzysx.modules.ysxManagement.vo.ZqtVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 砖砌体结构
 */
@RestController
@RequestMapping("/zqtCi")
public class ZqtCiController {

    @Autowired
    private ZqtCiService zqtCiService;

    /**
     * 砖砌体结构抗力修正系数Ci值添加或修改
     *
     * @return
     */
    @PostMapping("/saveOrUpdateZqtCi")
    public RestResponse saveOrUpdateZqtCi(@RequestBody ZqtVo zqtVo) {
        return zqtCiService.saveOrUpdateZqtCi(zqtVo);
    }

    /**
     * 砖砌体结构抗力修正系数Ci值查询
     *
     * @return
     */
    @GetMapping("/getAllZqtCi")
    public RestResponse getAllZqtCi(String titleName) {
        return zqtCiService.getAllZqtCi(titleName);
    }

    /**
     * 砖砌体结构抗力修正系数Ci值删除
     * @return
     */
    @GetMapping("/deleteZqtCiById")
    public RestResponse deleteZqtCiById(String zqtIds,String arrangeIds) {
        return zqtCiService.deleteZqtCiById(zqtIds, arrangeIds);
    }
}